package com.yhx.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 员工表与角色表的中间表，一个员工有多个角色
 * @TableName t_user_role
 */
@TableName(value ="t_user_role")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserRole implements Serializable {

    private Integer userId;


    private Integer roleId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}